export function formatTableHead(){
  let arr=[

    {label:'店铺名称',width:120, key:"name"},
    {label:'联系电话',width:120, key:"promotion_info"},
    {label:'店铺地址',width:150, key:"address"},
    {label:'评分',width:120, key:"rating"},
    {label:'销量',width:120, key:"rating_count"},
    {label:'介绍',width:150, key:"promotion_info"},
    {label:'店铺分类',width:120, key:"category"},
  ]
  //  let list=[]
  //   let keys=['name','address','promotion_info']

  // arr.forEach(item=>{
  //     if(keys.includes(item.key)){
  //       width:150
  //     }
  // })


  return arr

}


export function getRestaurantDetail(arr){
  console.log(arr);
  let dataList=[]
  for(var key in arr){
    let data={
      itemName:'',
      itemValue:''
    }
    console.log(key,arr[key]);
    data.itemName=key
    data.itemValue=arr[key]
    dataList.push(data)
  }

  console.log(dataList);
  return dataList
  
}